package com.example.redislearning.entity;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户课程购买记录实体类
 * 对应表：user_courses
 */
@Data
public class UserCourse {
    private Integer id;
    private Integer userId;
    private Integer courseId;
    private Double purchasePrice;
    private LocalDateTime purchaseTime;
    private Double progress;
    private LocalDateTime lastStudyTime;
    private Integer studyTime;
    private Integer status;
    private LocalDateTime completedAt;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    // 关联的课程信息
    private Course course;
}